package com.boot.main.mapper;

import com.boot.main.entity.ScomAd;
import com.boot.main.entity.ScomOrderProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface ScomOrderProductMapper {
    List<ScomOrderProduct> getOrderProducts(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit, @Param("name") String name);
    Integer getTotalCount();
    Integer saveOrderProduct(ScomOrderProduct orderProduct);
    Integer deleteOrderProduct(@Param("id") Long id);
}
